package com.qlm.common;

import java.math.BigDecimal;

public class Define {
	public static final int ADD_QRCODE_MAX = 5000000;//最大产码数量
	public static final int ADD_QRCODE_IMG_MAX = 100000;//最大产码图片数量
	public static final int ADD_QRCODE_MIN = 1;//最小产码数量
	public static final int QRCODE_MAX = 100000000;//产码分表数量
	public static final int ADD_QRCODE_SINGLE = 500000;//产码分包数量
	//角色
	public final static int ROLE_ADMIN = 1;//管理员
	public final static int ROLE_MANAGE = 2;//超级管理员
	public final static int ROLE_DEVELOP = 3;//开发者
	
	//奖品配置开关
		public final static int OFF_SWITCH = 0;//奖品配置未启用
		public final static int ON_SWITCH = 1;//奖品配置启用
		//兑奖发奖状态
		public final static int RECORD_TYPE_ONE = 1;//发奖
		public final static int RECORD_TYPE_TWO = 2;//兑奖
		//礼品类型
		public final static Integer GIFT_TYPE_REAL = 0;//实物礼品
		public final static Integer GIFT_TYPE_COUPON = 1;//票劵礼品
		//coupon状态
		public final static Integer COUPON_STATUS_UNCLAIMED = 0;//未领取
		public final static Integer COUPON_STATUS_RECEIVE = 1;//已领取
		//礼品状态
		public final static Integer GIFT_IS_UNPUTAWAY = 1;
		public final static Integer GIFT_IS_PUTAWAY = 0;
		//红包金额（元/分）转换中间值
		public final static BigDecimal HB_AMOUNT = new BigDecimal(100);
		//兑奖类型
		public final static Integer WIN_TYPE_CODE = 0;//扫码兑奖
		public final static Integer WIN_TYPE_POINT = 1;//积分兑奖
		public final static Integer WIN_TYPE_LOTTERY = 1;//积分抽奖			
		//奖品兑换状态
		public final static String WIN_NOT_CONVERT = "0";//未兑奖
		public final static String WIN_GOING_CONVERT = "1";//兑奖中
		public final static String WIN_COMPLETE_CONVERT = "2";//已兑奖
		public final static String WIN_WAIT_CONVERT = "3";//待发奖
		public final static String WIN_WAIT_LOOKOVEDR = "4";//查看（只读）			
		//积分流水类型
		public final static Integer COST_TYPE_CHECK_IN = 0;//签到
		public final static Integer COST_TYPE_EXCHANGE = 1;//积分兑换
		public final static Integer COST_TYPE_LOTTERY = 2;//积分抽奖
		public final static Integer COST_TYPE_SCANLOTTERY = 3;//扫码送积分
		//积分消费类型
		public final static Integer COST_EXCHANGE =  0;//兑换
		public final static Integer COST_LOTTERY =  1;//抽奖
		//奖品物流发货状态
		public final static String LOGISTICS_UNSEND = "0";//未发货
		public final static String LOGISTICS_SEND = "1";//已发货
		public final static String LOGISTICS_RECEIVE = "2";//已收货
		//返回结果
		public final static String SUCCESS = "success";//成功
		public final static String FAIL = "fail";//失败
		//ResultMessage返回结果
		public final static Integer RM_SUCCESS =   0;
		public final static Integer RM_FAIL =   1;
}
